export interface SwitchAndIntervalRef {
  switchAssociation: (newAssocaitionId: string) => void //切换协会
  intervalRefresh: () => void //5分钟刷新一次
  resize?: () => void
}

export type OrgType = '-1' | '1' | '2' | '3' | '4' | undefined //全部组织 | 政府 | 协会 | 企业 | 服务商

// header 协会列表
export type AssociationData = {
  key: string
  label: string
  regionCode?: string
  regionCodeValue?: string
  operateEntFlag?: string
}

//当前协会下车辆列表 可视化点图层
export interface ICarGeoData {
  type: 'FeatureCollection'
  features: {
    type: 'Feature'
    properties: { plateNumber: string }
    geometry: { type: 'Point'; coordinates: [number, number] }
  }[]
}

//当前协会下车辆列表 可视化点图层
export interface IOrgGeoData {
  type: 'FeatureCollection'
  features: {
    type: 'Feature'
    properties: { entName: string }
    geometry: { type: 'Point'; coordinates: [number, number] }
  }[]
}
